import request from '@/utils/request'

// 查询车次信息列表
export function listInformation(query) {
  return request({
    url: '/system/information/list',
    method: 'get',
    params: query
  })
}

// 查询车次信息详细
export function getInformation(tid) {
  return request({
    url: '/system/information/' + tid,
    method: 'get'
  })
}

// 新增车次信息
export function addInformation(data) {
  return request({
    url: '/system/information',
    method: 'post',
    data: data
  })
}

// 修改车次信息
export function updateInformation(data) {
  return request({
    url: '/system/information',
    method: 'put',
    data: data
  })
}

// 删除车次信息
export function delInformation(tid) {
  return request({
    url: '/system/information/' + tid,
    method: 'delete'
  })
}

// 导出车次信息
export function exportInformation(query) {
  return request({
    url: '/system/information/export',
    method: 'get',
    params: query
  })
}